package com.example.Annocation.factoryBean;

import com.example.Annocation.commons.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description TODO
 * @Date 2024/5/15 0:50
 * @Created by houjunfeng
 */
@Configuration
public class MyFactoryConfigeration {
    @Bean(name = "MyFactoryBean")
    public MyFactoryBean getMyFactoryBean(){
        return new MyFactoryBean();
    }
    @Bean
    public Student getStudent(){
        return new Student();
    }
}
